<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
	<title><?php echo $title; ?></title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<meta name="robots" content="noindex, nofollow" />
	<link rel="stylesheet" type="text/css" href="<?php echo CSS_URL; ?>style.css" />
	<link rel="shortcut icon" href="<?php echo IMG_URL; ?>favicon.ico" />
        
    <link type="text/css" href="<?php echo APPLICATION_URL; ?>/public/js/jquery/css/jquery-ui.custom.css" rel="stylesheet" />
	<link type="text/css" href="<?php echo APPLICATION_URL; ?>/public/js/jquery/plugins/tipsy/stylesheets/tipsy.css" rel="stylesheet" />
	<script type="text/javascript" src="<?php echo APPLICATION_URL; ?>/public/js/jquery/js/jquery.min.js"></script>
	<script type="text/javascript" src="<?php echo APPLICATION_URL; ?>/public/js/jquery/js/jquery-ui.custom.min.js"></script>
	<script type="text/javascript" src="<?php echo APPLICATION_URL; ?>/public/js/jquery/plugins/tipsy/javascripts/jquery.tipsy.js"></script>
	<script type="text/javascript" src="<?php echo APPLICATION_URL; ?>/public/js/jquery/plugins/showMessage/js/jquery.showMessage.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo APPLICATION_URL; ?>/public/js/common.js"></script>
	
	<!--[if IE 7]>
		<link rel="stylesheet" type="text/css" href="<?php echo CSS_URL; ?>fix_ie7.css" />
	<![endif]-->
	
	<script type="text/javascript">
		var applicationUrl = '<?php echo APPLICATION_URL; ?>';
		//calendar image link
		//var calendar_image_src = '<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const._IMAGE_CALENDAR}>_<{$smarty.const.IMAGE_SIZE_SMALL}>.<{$smarty.const.IMAGE_ICON_FILE_EXTENSION}>';
		//var calendar_image_text = '<{$smarty.const._LB_CALENDAR}>';
		function changeLanguage(language)
		{
			document.getElementById('language_change').value = language;
			document.frm_lg.submit();
		}
	</script>
</head>
<body>
	<!--[if lt IE 7]>
	  <div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>
		<div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'/></a></div>
		<div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
		  <div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/></div>
		  <div style='width: 275px; float: left; font-family: Arial, sans-serif;'>
			<div style='font-size: 14px; font-weight: bold; margin-top: 12px;'><?php echo '_LB_IE6_ALERT_1'; ?></div>
			<div style='font-size: 12px; margin-top: 6px; line-height: 12px;'><?php echo '_LB_IE6_ALERT_2'; ?></div>
		  </div>
		  <div style='width: 75px; float: left;'><a href='http://www.firefox.com' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/></a></div>
		  <div style='width: 75px; float: left;'><a href='http://www.browserforthebetter.com/download.html' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer 8'/></a></div>
		  <div style='width: 73px; float: left;'><a href='http://www.apple.com/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/></a></div>
		  <div style='float: left;'><a href='http://www.google.com/chrome' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div>
		</div>
	  </div>
	  <![endif]-->
	<div id="bg" align="center">
		<div id="main_frame">
			<div id="content">
				<div align="left">
					<div id="banner">
						<div class="logo">
							<div class="vertical_line"><?php echo _LB_BO_SEARCH; ?></div>
						</div>
						<div class="right">
							<div class="banner_button">
                            <?php if($this->session->userdata('allow_access')) { ?>
								<?php if( isset($old_user_info)) { ?>
									<a class="deconnection" href="<?php echo APPLICATION_URL; ?>/login/login/?act=<?php echo 'ACT_RETRANSFORM'; ?>" onclick='return confirm("<?php echo '_MSG_RETRANSFORM_TO_ORIGINAL_USER'; ?>");' onmouseover="this.style.color ='#ffffff'" onmouseout="this.style.color ='#82786f'">
										<img class="small" src="<?php echo IMG_URL; ?>button.png" alt="" />
										<?php echo _LB_DECONNECTION; ?>
									</a>
								<?php } else { ?>
									<a id="auto_logout" href="<?php echo APPLICATION_URL; ?>/login/logout" onmouseover="this.style.color ='#99CC33'" onmouseout="this.style.color ='#82786f'">
										<img class="small" src="<?php echo IMG_URL; ?>button.png" alt="" />
										<?php echo _LB_DECONNECTION; ?>
									</a>
								<?php } ?>
							<?php } ?>
							</div>
                            <div id="login_info">
                                <?php if($this->session->userdata('user_id') && isset($array_menus)) { ?>
                                <span>
                                     <?php echo _LB_WELCOME; ?>&nbsp;<b><?php echo $this->session->userdata('user_name'); ?></b>
                                </span>
                                <?php } ?>
                            </div>
						</div>
					</div>
                <?php if($this->session->userdata('user_id') && isset($array_menus)) { ?>
                    <?php include("menu.php"); ?>
				<?php } else { ?>
					<div class="spacer"></div>
				<?php } ?>
				<div id="cfer"><?php if( isset($cfer)) { ?><?php echo $cfer->display(); ?><?php } ?></div>
				<div>
					<noscript>
						<div class="error_div">
							<div id="error_msg" class="error_msg">
								<img src="<?php echo IMG_URL; ?><?php echo IMAGE_NAME_INFO2_SMALL; ?>" alt="" /><b><?php echo _LB_NOSCRIPT_WARNING; ?></b>
							</div>
						</div>
					</noscript>
                                    <?php if (MessageHandler::countError()) { $sysmsg = MessageHandler::getMessages();?>
					<?php if (is_array($sysmsg) && count($sysmsg) > 0) { ?>
                                            <?php foreach ($sysmsg as $msg) { ?>
                                                <?php if ($msg['type'] == MSG_ERROR) { ?>
                                                    <img src="<?php echo IMG_URL; ?><?php echo IMAGE_NAME_INFO2_SMALL; ?>" alt="" /><b><?php echo $msg['message']; ?></b><br/>
                                                <?php } ?>
                                            <?php } ?>
                                        <?php } ?>
                                                    <?php } ?>
				</div>
				<div class="main" style="margin-top:0px;">
